<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Cherry.js</title>
    <script src="../../Cherry.js"></script>
    <style>
        .test{
            position: absolute;
        }
    </style>
</head>
<body>
    <div id="app"></div>
</body>
<script>

    new CherryMain({
        app:"app",
        child:[
           new CHE_Scrollbox({
               height:100,
               width:100,
               position:"relative",
               overflowH: false,
               overflowV: false,
               box:{
                   borderRadius:5,    //原角度
                   borderWidth:1,      //边框粗细
                   borderStyle:"dashed",//边框样式
                   borderColor:"#898989",  //边框颜色
                   boxShadow:"0 0 10px #898989", // 阴影
                   boxShadowHover:"0 0 2px #898989" // 鼠标浮动阴影
               },
               child:[
                    new CHE_Text({
                        position: "absolute",
                        height:"100%",
                        width:"100%",
                        text:"点击选中文件",
                        textAlign:"center",
                        lineAlign:"center",
                        zindex:1,
                        colorStyle:{
                            color:"#898989",
                            size:12,   //字体大小
                        },
                    }),
                    new CHE_Input({
                        position: "absolute",
                        height:"100%",
                        width:"100%",
                        Itype:"file",
                        zindex:2,
                        opacity:0,
                    })
               ]
           })
        ],
        Created:()=>{

        }
    });

</script>
</html>